package com.pams.mapper;

import cn.hutool.core.date.DateTime;
import com.pams.pojo.entity.Journal;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface JournalMapper {
    void insert(Journal journal);

    List<Journal> getlist(String username);

    Journal getById(int id);

    void update(Journal journal);

    void delete(int id);

    List<Journal> search(String currentUsername,String title);

    void getlistToday(String username, DateTime day);
}
